/*
 * @Author: wuqingchun
 * @Date: 2024-10-21 19:46:37
 * @Description: 事件处理器
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-10-29 19:46:33
 */
#ifndef __NET_EVENT_HANDLER_H__
#define __NET_EVENT_HANDLER_H__

#include <cstdint>

#include "libnet.h"

class INetEventHandler
{
public:
    virtual ~INetEventHandler()
    {

    }

    virtual int32_t Wait() = 0;
    
    virtual int32_t AddRDEvent(INetTCPConnection* pobjConnection) = 0;
    virtual int32_t AddWREvent(INetTCPConnection* pobjConnection) = 0;
    virtual void DeleteRDEvent(INetTCPConnection* pobjConnection) = 0;
    virtual void DeleteWREvent(INetTCPConnection* pobjConnection) = 0;
};


#endif //__NET_EVENT_HANDLER_H__